package com.tpyule.tpclass.service;

import com.tpyule.tpclass.entity.pojo.Chapter;

import java.util.List;

/**
 * @author zzz
 * @version 1.0
 * @date 2020/3/29 13:29
 */
public interface ChapterService {
    /**
     * 添加章
     * @param chapter
     * @return
     */
    public Chapter addChapter(Chapter chapter);

    /**
     * 更新章
     * @param chapter
     * @return
     */
    public String updateChapter(Chapter chapter);

    /**
     * 根据课程ID获取最后一个章ID
     * @param courseId
     * @return
     */
    public Chapter getLastChapter(String courseId);

    public List<Chapter> getListChapter(String courseId);
}
